<!DOCTYPE html>
<html lang="cn">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./node_modules/vue/dist/vue.js"></script>
</head>
<body>
    <div id="app">
        <hello></hello>
    </div>
    <template id="h">
        <div>
            <h1>{{msg}}</h1>
            <input type="text" placeholder="请输入用户名"/><br>
            <input type="text" placeholder="请输入密码"/><br>
            <input type="button" value="按一下">
        </div> 
    </template>
    <script>

        const hello = {
            template:"#h",
            data() {
                return {
                    msg: '登录页面',
                };
            },
        }

        //1.创建Vue实例
        const vm = new Vue({
            el:"#app",
            components: {
                hello
            }
        })

    </script>
</body>
</html>